home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection Student Program / ADC Tools Sampler CD Disk 3 1999.iso / Metrowerks CodeWarrior / Java Support / Java_Source / Java2 / src / java / io / InterruptedIOException.java < prev    next >
Encoding:
Java Source  |  1999-05-28  |  1.8 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*
  2.  * @(#)InterruptedIOException.java    1.13 98/06/29
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.io;
  16.  
  17. /**
  18.  * Signals that an I/O operation has been interrupted. An
  19.  * <code>InterruptedIOException</code> is thrown to indicate that an
  20.  * input or output transfer has been terminated because the thread
  21.  * performing it was terminated. The field {@link #bytesTransferred}
  22.  * indicates how many bytes were successfully transferred before
  23.  * the interruption occurred.
  24.  *
  25.  * @author  unascribed
  26.  * @version 1.13, 06/29/98
  27.  * @see     java.io.InputStream
  28.  * @see     java.io.OutputStream
  29.  * @see     java.lang.Thread#interrupt()
  30.  * @since   JDK1.0
  31.  */
  32. public
  33. class InterruptedIOException extends IOException {
  34.     /**
  35.      * Constructs an <code>InterruptedIOException</code> with
  36.      * <code>null</code> as its error detail message.
  37.      */
  38.     public InterruptedIOException() {
  39.     super();
  40.     }
  41.  
  42.     /**
  43.      * Constructs an <code>InterruptedIOException</code> with the
  44.      * specified detail message. The string <code>s</code> can be
  45.      * retrieved later by the
  46.      * <code>{@link java.lang.Throwable#getMessage}</code>
  47.      * method of class <code>java.lang.Throwable</code>.
  48.      *
  49.      * @param   s   the detail message.
  50.      */
  51.     public InterruptedIOException(String s) {
  52.     super(s);
  53.     }
  54.  
  55.     /**
  56.      * Reports how many bytes had been transferred as part of the I/O
  57.      * operation before it was interrupted.
  58.      *
  59.      * @serial
  60.      */
  61.     public int bytesTransferred = 0;
  62. }
  63.